package com.kele.feign.impl;

import com.kele.entity.User;
import com.kele.feign.FeignProviderClient;
import org.springframework.stereotype.Component;

import java.util.Collection;

/**
 * @author kele
 * @date 2021/8/9 15:21
 * @description 处理容错机制
 */
@Component
public class FeignError implements FeignProviderClient {
    @Override
    public Collection<User> findAll() {
        return null;
    }

    @Override
    public String index() {
        return "服务器正在维护中。。。";

    }
}
